<script lang="ts" setup>
import { ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui';
const data = ref({});
const [Drawer, drawerApi] = useVbenDrawer({
  class: 'w-1/2',
  onOpenChange(isOpen: boolean) {
    if (isOpen) {
      data.value = drawerApi.getData<Record<string, any>>();
    }
  },
});
</script>
<template>
  <Drawer :title="data.title">{{ data.content }}</Drawer>
</template>
